package user;
/**
 * 用户基本信息类(一般跟数据库的表对应)
 * @author 谢一弘
 * @date 2020-4-14
 */
public class User {
     //select uid,uname,pass,sex,profession,favourite,note,type,isValid from user; 
     private int uid;//编号
     private String uname;//姓名
     private String  pass;//密码
     private String  sex;//性别
     private String  profession;//职业
     private String  favourite;//爱好
     private String  note;//个人简历
     private int type;//类型
     private int isValid;//状态
     
     public User() {
    	 
     }
     public User(int uid) {
    	 this.uid = uid;
     }
     public User(String uname) {
    	 this.uname = uname;
     }
     public  User(int uid,String uname) {
		this.uid = uid;
		this.uname = uname;
	}
     public  User(String uname,String pass) {

 		this.uname = uname; 
 		this.pass = pass;
 	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getProfession() {
		return profession;
	}
	public void setProfession(String profession) {
		this.profession = profession;
	}
	public String getFavourite() {
		return favourite;
	}
	public void setFavourite(String favourite) {
		this.favourite = favourite;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getIsValid() {
		return isValid;
	}
	public void setIsValid(int isValid) {
		this.isValid = isValid;
	}
    public String  toString() {
    	return "编号["+uid+"]"+"用户名["+uname+"]"+"密码["+pass+"]"+"性别["+sex+"]"+"职业["+profession+"]"+"爱好["+favourite+"]"+"个人说明["+note+"]"+"类型["+type+"]"+"状态["+isValid+"]";
    } 
}
